<template>
  <div class="background_style">
    <div class="main">
      <!-- <div class="sys">欢迎来到项目管理系统！</div> -->
      <div class="mylogin">
        <h1 class="sys">欢迎来到项目管理系统！</h1>
        <h1 class="sys">您可以选择：</h1>
        <div class="a">
          <a @click="login" style="font-size: 22px;">登录</a> 
          | <a @click="register" style="font-size: 22px;">注册</a>
        </div>
       
      </div>
    </div>
  </div>
</template>

<script>
import Cookie from "js-cookie";
export default {
  name: "Main",
  data() {
    return {
      
    };
  },

  methods:{
    login(){
      this.$router.push("/login")
    },
    register(){
      this.$router.push("/register")
    }
  }

};
</script>

<style scoped>
.main {
  width: 100vw;
  padding: 0;
  margin: 0;
  height: 100vh;
  font-size: 16px;
  background-position: left top;
  /* background-color: #242645; */
  color: #fff;
  font-family: "Source Sans Pro";
  position: relative;
}

.sys {
  font-size: 30px;
  font-weight: bolder;
  color: aqua;
  text-align: center;
}
.a{
  font-size: 30px;
  font-weight: bolder;
  color: rgb(199, 83, 118);
  text-align: center;
  margin-top: 60px;
}
.a a{
  cursor: pointer;
}
.mylogin {
  width: 360px;
  height: 360px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  padding: 50px 40px 40px 40px;
  box-shadow: -15px 15px 15px rgba(6, 17, 47, 0.7);
  opacity: 1;
  background: linear-gradient(
    230deg,
    rgba(180, 197, 28, 0) 0%,
    rgb(219, 231, 233) 100%
  );
}

/* 引入背景图片 */
.background_style {
  background-image: url("/src/image/background.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}
</style>